package util;

import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

import java.util.ArrayList;
import java.util.List;

public class GetList {
    private static String url="http://www.jjwxc.net/fenzhan/noyq/";

    public static List<String> getList(){
        List<String> urllist=new ArrayList<>();
        Document document = GetHtml.getDocument(url);
        Elements dt = document.select("dl .fl a");
        for (Element element : dt) {
            String href = element.attr("href");
            href = href.substring(2);
            urllist.add(href);
        }
        return urllist;
    }
}
